package com.janwen.j2ee.jmx;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class WebServer implements WebServerMBean{

	
	static final Log logger = LogFactory.getLog(WebServer.class);
	@Override
	public int getPort() {
		
		logger.info("getPort");
		return 0;
	}

	@Override
	public String getLogLevel() {
		logger.info("getLogLevel");
		return "Log.level.debug";
	}

	@Override
	public void setLogLevel(String level) {
		logger.info("setLoglevel: " + level);
	}

	@Override
	public boolean isStarted() {
		logger.info("isstarted");
		return false;
	}

	@Override
	public void stop() {

		logger.info("stop server");
	}

	@Override
	public void start() {
		logger.info("start server");
		
	}

}
